package com.gxitsky.plugin.controller;

import com.alibaba.fastjson.JSON;
import com.gxitsky.plugin.model.BaseRequest;
import com.gxitsky.plugin.model.BaseResponse;
import lombok.extern.slf4j.Slf4j;

/**
 * @author gxing
 * @desc TODO
 * @date 2022/1/6
 */
@Slf4j
public class BaseController {

    public void process(BaseRequest request, BaseResponse response, Runnable runnable) {
        log.info("----->request:{}", JSON.toJSONString(request));
        runnable.run();
    }
}
